import request from '@/utils/request'

// 查询报销费用汇总列表
export function listFee(query) {
  return request({
    url: '/project/fee/list',
    method: 'get',
    params: query
  })
}

//收款信息
export function listFeeReceive(query) {
  return request({
    url: '/project/fee/listFeeReceive',
    method: 'get',
    params: query
  })
}

export function getReceiveAndPayForCustomer(query) {
  return request({
    url: '/project/fee/customerFeeList',
    method: 'get',
    params: query
  })
}




// 查询报销费用汇总详细
export function getFee(id) {
  return request({
    url: '/project/fee/' + id,
    method: 'get'
  })
}

// 查询对应的项目 报销费用汇总
export function totalFee(query) {
  return request({
    url: '/project/fee/totalFee',
    method: 'get',
    params: query
  })
}

// 查询对应的项目 报销费用汇总 按照往来日期
export function totalFeeByDate(query) {
  return request({
    url: '/project/fee/totalFeeByDate',
    method: 'get',
    params: query
  })
}

// 新增报销费用汇总
export function addFee(data) {
  return request({
    url: '/project/fee',
    method: 'post',
    data: data
  })
}

// 修改报销费用汇总
export function updateFee(data) {
  return request({
    url: '/project/fee',
    method: 'put',
    data: data
  })
}

// 删除报销费用汇总
export function delFee(id) {
  return request({
    url: '/project/fee/' + id,
    method: 'delete'
  })
}
